package cesar.example

class Book {

    static belongsTo = [person: Person]
    
    String title
    Date releaseDate = new Date()
    String ISBN

    static constraints = {
    	title(blank: false)
    	ISBN(blank: false, unique: true)
    }
    
    public String toString() {
    	return title
    }        
}
